#ifndef USER_KEY_BOARD_H
#define USER_KEY_BOARD_H

#include "main.h"
#include "stm32f0xx_hal.h"
#include "gpio.h"

#define KEY0	13  
#define KEY1	0
#define KEY2	1
#define KEY3	2
#define KEY4	4
#define KEY5	5
#define KEY6	6
#define KEY7	8	
#define KEY8	9
#define KEY9	10
#define KEYA	3
#define KEYB	7
#define KEYC	11
#define KEYD	15
#define KEYE	12
#define KEYF	14


void user_keyScan(void);
uint8_t user_keyShortRelease(uint8_t keyNum);
uint8_t user_keyLongRelease(uint8_t keyNum);
uint8_t user_keyLongHold(uint8_t keyNum);
uint16_t user_allKeyShortRelease(void);
uint16_t user_allKeyLongRelease(void);
uint16_t user_allKeyLongHold(void);

#endif
